package com.move;



import org.loon.framework.android.game.core.geom.Point;
import org.loon.framework.android.game.core.graphics.device.LGraphics;
import org.loon.framework.android.game.core.timer.LTimerContext;



public class No_oneScreen extends GameScreen 
{
 private static final int GROUND_Y=375;
 private static final Point p0=new Point(0,375);
 private static final Point p1=new Point(395,375);
 private static final Point p2=new Point(587,570);
 private static final Point p3=new Point(750,570);
 private static final Point p4=new Point(950,375);
 private static final Point p5=new Point(1533,375);
 private static final Point p6=new Point(2235,570);
 private static final Point p7=new Point(2500,570);
 private static final Point p8=new Point(3804,540);
 private static final Point p9=new Point(4025,520);
 public static final Point p10=new Point(2145,25);
 
 //private Sprite rope;/*绳子*/
 
 public No_oneScreen()
 {
   super("assets/Map.png");
   //rope=new Sprite("assets/rope.png");
   //rope.setLocation(p10.x, p10.y);
   Suposed_Y=GROUND_Y-Ben.hero.getHeight();
   Ben.hero.setLocation(0,Suposed_Y);
   
   
 }
 

 public void draw(LGraphics g)
 {
  super.draw(g);
  //rope.createUI(g);
 }
  
 public void alter(LTimerContext t)
 {
  //rope.setLocation(p10.x+MapX,p10.y);
  //if(Ben.hero.isRectToRect(rope))
  //{
   //hMove=Hero.STATIC;	  
   //isUseful=false;  
  //}
  if(isUseful)
  {
   super.alter(t);
   super.UporDown(p0, p1);
   super.UporDown(p1, p2); 
   super.UporDown(p3, p4);
   super.UporDown(p5, p6);
   super.UporDown(p7, p8);
   if(super.reachBendPoint(p8, p9))
   {
    vMove=-1;
    Suposed_Y=720;
   }  
  }
  //else
  //{
   //if(vMove==Hero.JUMP)
	  //Ben.hero.move_up(5);
  //}
  
 
	  
 }
 
 
 
 
}
